import VeeValidation from 'vee-validate';
import Vue from 'vue'
// 中文提示信息
import zh_CN from 'vee-validate/dist/locale/zh_CN';
Vue.use(VeeValidation);

VeeValidation.Validator.extend('phone', value => {
  return value % 2 !== 0;
});

VeeValidation.Validator.localize('zh_CN', {
  message: {
    ...zh_CN.messages,
    is: (field) => `${field}`
  }
})
